package com.itheima.reggie.service;

import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.Employee;
import com.itheima.reggie.entity.Page;


public interface EmployeeService {
    //返回对象是R R存储登陆成功的用户,
    public R<Employee> login(Employee employee);

    public void save (Employee employee);


    Page<Employee> findByPage(int page, int pageSize, String name);

    /**
     * 更新员工信息
     * @param employee
     */
    void update(Employee employee);

    /**
     * 根据id查找员工
     * @param id
     * @return
     */
    R<Employee> findById(long id);
}
